import fly from "../utils/request"
// 登录
export const nav = () =>{
  return fly.get("/user/channels")
}
// 获取首页数据
export const home = ({id,time}) =>{
  return fly.get(`/articles?channel_id=${id}&with_top=1&timestamp=${time}`)
}

